import type {RouteRecordRaw} from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/configuration_menu',
  component: Layout,
  redirect: '/configuration_menu/list',
  name: 'configurationMenu',
  meta: {
    title: '配置管理',
    icon: 'i-heroicons-solid:menu-alt-3',
  },
  children: [
    {
      path: 'list',
      name: 'configurationList',
      component: () => import('@/views/configuration/list/index.vue'),
      meta: {
        title: '配置列表',
      },
    },
  ],
}

export default routes
